package kevin.ecstorm.pdd.rest;

import com.pdd.pop.sdk.http.api.request.PddLogisticsAddressGetRequest;
import com.pdd.pop.sdk.http.api.response.PddLogisticsAddressGetResponse;
import kevin.ecstorm.pdd.config.PddAppAuth;
import kevin.ecstorm.pdd.service.IPddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ©Copyright ©1968-2020 Midea Group,IT
 * FileName: PddlogisticsRest
 * Author: kevin
 * Date: 2020年04月22日 21:22:27
 * Description: PddlogisticsRest服务接口
 */
@RestController
@RequestMapping("/pdd")
public class PddlogisticsRest {
    @Autowired
    private IPddService pddService;
    @Autowired
    private PddAppAuth auth;

    @PostMapping("/logisticsAddressGet")
    public PddLogisticsAddressGetResponse pddLogisticsAddressGet(PddLogisticsAddressGetRequest param) {
        return pddService.syncInvoke(param, auth);
    }
}
